import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from 'element-plus/es/locale/lang/zh-cn' //中文
import dayjs from "dayjs";
import VueCookies from 'vue-cookies'
import VueSession from 'vue-session'
import axios from "axios";
import crypto from '@/utils/crypto'
// import 'amfe-flexible'

let app = createApp(App)
app.use(router)
app.use(ElementPlus,{locale});

app.config.globalProperties.$http = axios;
app.config.globalProperties.$dayjs = dayjs;
app.config.globalProperties.$url = "http://192.168.7.101:1009";
app.config.globalProperties.$cookie = VueCookies;
app.config.globalProperties.$session = VueSession;
app.config.globalProperties.$AES = crypto;




app.mount('#app')

